package com.hjl.spring6.junit.junit5;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author ServivE
 * @version 0.1
 * @className SpringJUnit5Test
 * @description
 * @date 2024/8/7 19:21
 * @since jdk11
 */
@SpringJUnitConfig(locations = "classpath:bean.xml")
public class SpringJUnit5Test {
    @Autowired
    private User user;

    @Test
    public void testUser() {
        System.out.println(user);
        user.run();
    }
}
